﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using DAL_EF;
using System.Data;

namespace BLL
{
    public class StudentManager
    {
        /// <summary>
        /// get studentlist for "Student List"
        /// </summary>
        /// <param name="courseId"></param>
        /// <returns></returns>
        public List<Model.Student> getStudentList(int courseId)
        {
            Factory factory = new Factory();
            IStudentRepository studentRepository = factory.getStudentOperations();
            List<Model.Student> studentName = studentRepository.selectStudent_Left(courseId);
            return studentName;
        }
      
        /// <summary>
        /// get student list for "SelectedList"
        /// </summary>
            /// <param name="selected"></param>
        /// <returns></returns>
        public List<Model.Student> getSelectedList(int courseId)
        {
            Factory factory = new Factory();
            IStudentRepository studentRepository = factory.getStudentOperations();
            List<Model.Student> studentName = studentRepository.selectStudent_Right(courseId);
            return studentName;
        }
        
       }
}



